package com.chenjf.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("student")
@RestController
public class StudentController {


    @PostMapping("/list/{id}")
    public String list(@PathVariable Integer id) {
        System.out.println("id = " + id);
        return "student ok!";
    }
}
